﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PlatForm_QuestionDetail : System.Web.UI.Page
{
	private PX.Question.Component clsQuestionComp = new PX.Question.Component();

	protected void Page_Load(object sender, EventArgs e)
	{
		if (!IsPostBack)
		{
			ShowQuestionDetail();
		}
	}

	protected override void OnInit(EventArgs e)
	{
		base.OnInit(e);

		clsQuestionComp.page = Page;
	}
	/// <summary>
	/// 显示一个问题详细信息
	/// </summary>
	/// <![CDATA[2014-7-23 15:35:07]]>
	private void ShowQuestionDetail()
	{
		int nQuestionID;
		PX.Question.Entity clsQuestion = new PX.Question.Entity();

		nQuestionID = Convert.ToInt32(Request["QuestionID"]);

		clsQuestion = clsQuestionComp.GetOne(nQuestionID);

		TCellWhetherAnswer.Text = clsQuestion.HaveAnswerName;
		TCellAskerName.Text = clsQuestion.AskerName;
		TbQuestion.Text = clsQuestion.Content;
		TCellQuestionDate.Text = clsQuestion.DateTime;
		TCellExpertName.Text = clsQuestion.ExpertName;
		TbAnswer.Text = clsQuestion.Answer;
		TCellAnswerDate.Text = clsQuestion.AnswerDateTime;
	}
}